home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 21 / AACD 21.iso / AACD / Utilities / Ghostscript / src / icontext.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-01-01  |  2.1 KB  |  56 lines

  1. /* Copyright (C) 1997, 1998, 1999 Aladdin Enterprises.  All rights reserved.
  2.   
  3.   This file is part of AFPL Ghostscript.
  4.   
  5.   AFPL Ghostscript is distributed with NO WARRANTY OF ANY KIND.  No author or
  6.   distributor accepts any responsibility for the consequences of using it, or
  7.   for whether it serves any particular purpose or works at all, unless he or
  8.   she says so in writing.  Refer to the Aladdin Free Public License (the
  9.   "License") for full details.
  10.   
  11.   Every copy of AFPL Ghostscript must include a copy of the License, normally
  12.   in a plain ASCII text file named PUBLIC.  The License grants you the right
  13.   to copy, modify and redistribute AFPL Ghostscript, but only under certain
  14.   conditions described in the License.  Among other things, the License
  15.   requires that the copyright notice and this notice be preserved on all
  16.   copies.
  17. */
  18.  
  19. /*$Id: icontext.h,v 1.2 2000/09/19 19:00:42 lpd Exp $ */
  20. /* Externally visible context state */
  21. /* Requires iref.h, stdio_.h */
  22.  
  23. #ifndef icontext_INCLUDED
  24. #  define icontext_INCLUDED
  25.  
  26. #include "gsstype.h"        /* for extern_st */
  27. #include "icstate.h"
  28.  
  29. /* Declare the GC descriptor for context states. */
  30. extern_st(st_context_state);
  31.  
  32. /*
  33.  * Define the procedure for resetting user parameters when switching
  34.  * contexts. This is defined in either zusparam.c or inouparm.c.
  35.  */
  36. extern int set_user_params(P2(i_ctx_t *i_ctx_p, const ref * paramdict));
  37.  
  38. /* Allocate the state of a context, always in local VM. */
  39. /* If *ppcst == 0, allocate the state object as well. */
  40. int context_state_alloc(P3(gs_context_state_t ** ppcst,
  41.                const ref *psystem_dict,
  42.                const gs_dual_memory_t * dmem));
  43.  
  44. /* Load the state of the interpreter from a context. */
  45. /* The argument is not const because caches may be updated. */
  46. int context_state_load(P1(gs_context_state_t *));
  47.  
  48. /* Store the state of the interpreter into a context. */
  49. int context_state_store(P1(gs_context_state_t *));
  50.  
  51. /* Free the contents of the state of a context, always to its local VM. */
  52. /* Return a mask of which of its VMs, if any, we freed. */
  53. int context_state_free(P1(gs_context_state_t *));
  54.  
  55. #endif /* icontext_INCLUDED */
  56.